#ifndef __GLOBAL_H
#define __GLOBAL_H

#include "macro.h"
#include "App_TemperatureHumidity.h"
#include "Hal_Measure.h"
#include "App_Communiction.h"

#define SA 1  //温湿度检测板
#define SHT30 1

typedef struct
{
    sTemperatureHumidity sTemperatureHumidity_inst;  // TemperatureHumidity structure
    sPower sPower_inst;                              // system Power structure
    sMeasureCalibrate sMeasureCalibrate_inst;
    INT8 u8SA;    //温湿度板标志
    INT8 u8Addr;  //温湿度板地址
    uint16_t u8UpdateAddr;
    INT16 i16Temp;
} sVariable;

#define HARDERR 0x8000

extern sVariable g_sVariable;

#endif /*__GLOBAL_VAR_H*/
